<?php

namespace app\common\model;
use think\facade\Request;
use app\common\model\Common;
// use think\model\concern\SoftDelete;
class TopicLog extends Common
{
    // use SoftDelete;
    // protected $deleteTime = 'dele_time';
    protected  $table = 'topic_log';
    
    public function joinUser($where,$field,$order){
        $limit = Request::param('limit')??10;
        $page = Request::param('page')??1;
        return self::table('topic_log')
        ->alias('a')
        ->join(['user'=>'b'],'a.user_id=b.id')
        ->where($where)
        ->field($field)
        ->order($order)
        ->limit($limit)
        ->page($page)
        ->select();
    }
}